package edu.scau.mis.core.exception;

/**
 * 自定义异常
 *
 */
public class CustomException extends RuntimeException{

    //错误码
    private int errorCode;

    //错误描述
    private String errorMsg;

    public CustomException(String errorMsg, int errorCode){
        this.errorMsg = errorMsg;
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
